module.exports = {
	basepath: '/',
	routeArr:[
		{
			method: 'get',
			path: '/form',
			func: async (ctx, next) => {
				await ctx.render('login', { })
			}
		},
		{
			method: 'post',
			path: '/signin',
			func: async (ctx, next) => {
				var name = ctx.request.body.name || '',
					password = ctx.request.body.password || '';
				await ctx.render('signin', { 
					islogin: name === 'koa' && password === '12345',
					username: name
				})
				await next(); 
			}
		},
		{
			method: 'post',
			path: '/signin',
			func: async (ctx, next) => {
			  console.info('hahahahah')
			}
				
		},
		{
			method: 'get',
			path: '/other',
			func: async (ctx, next) => {
				await ctx.render('other', { h1: '大标题', h2: '小标题',num : 1 })
			}
		}
	]
}